package com.se2.antiqueexhibition.Service;

import com.se2.antiqueexhibition.pojo.RelicCategory;

import java.util.List;

public interface RelicCategoryService {


    List<RelicCategory> getAllCategories();
    RelicCategory getCategoryById(int id);


    void addCategory(RelicCategory relicCategory);

    void updateCategory(RelicCategory relicCategory);

    void deleteCategory(int id);

    boolean isNameExists(String name);
}

